﻿{extend name="public/base" /}
{block name="main"}
<article class="page-container">
	<form action="" method="post" enctype="multipart/form-data" class="form form-horizontal" id="form-admin-role-save" >
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>支付宝二维码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="file" class="input-text" name="zfb" placeholder="支付宝二维码" name="controller_name">
			</div>
			<div class="formControls col-xs-8 col-sm-9">
				<div class="zfbewm" style="text-align: center"><img src="/images/zfbewm.jpg" alt="" width="200"></div>
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>微信二维码名：</label>
			<div class="formControls col-xs-8 col-sm-9">
			<input type="file" name="wx" class="input-text"   placeholder="微信支付二维码"  name="table_name">
		</div>
			<div class="formControls col-xs-8 col-sm-9">
				<div class="wxewm" style="text-align: center"><img src="/images/wxewm.jpg" alt=""  width="200"></div>
			</div>
		</div>


		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button type="submit" class="btn btn-success radius" id="admin-role-save"><i class="icon-ok"></i> 确定</button>
			</div>
		</div>
	</form>
</article>
{/block}
{block name="js"}
<script type="text/javascript">
	$("#form-admin-role-save").validate({
		rules:{
			controller_name:{
                required:true,
                isEnglish:true,
			},
			table_name:{
                required:true,
                isRightfulString:true
			}
		},
		submitHandler:function(form){
			$(form).submit();
		}
	});


function closeWindow(){
	var index = parent.layer.getFrameIndex(window.name);
	window.parent.location.reload();
}
</script>
{/block}